package com.tech.thread.juc.locks.ReentrantLock;

/**
 * @Description:
 * @Author: zl
 * @Date: 2019/7/26 11:05
 */
public class Worker implements Runnable {
    private Task task;
    public Worker(Task task) {
        this.task = task;
    }
    @Override
    public void run() {
        task.performTask();
    }
}
